package cn.wuxing.mediation.web.controller.system;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Test {

    public static void main(String[] args) {
        // 使用正确的连接字符串
        String url = "jdbc:mysql://mediate2024.mysql.polardb.rds.aliyuncs.com:3306/mediate_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8";
        String user = "qt2024";
        String password = "Qt@2024JQi"; // 请替换为实际密码

        try {
            Connection connection = DriverManager.getConnection(url, user, password);
            System.out.println("Connection successful!");
            connection.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
